<?php

error_reporting(E_ALL | E_STRICT);

define('LIB_DIR', realpath(dirname(__FILE__) . '../../lib'));

require_once LIB_DIR . '/router/rewrite.php';

try{
  $router = new RewriteRouter();
  $router->setBasePath('/router/web');
  $router->route();
  
  var_dump($router);
}catch(Exception $e){
  var_dump($e);
}